using System.Net;

namespace Dewin.BO.Base
{
    public class Account
    {
        #region Public Variables
        /// <summary>
        /// Id cua account. Se duoc dat trong code de phan biet. 
        /// Vi du:  1 account agent cua sbo se co Id la A-SBO-001, A-SBO-002...
        ///         1 account member cua sbo se co Id la M-SBO-001, M-SBO-002...
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// Luu cookie
        /// </summary>
        public CookieContainer Cookie { get; set; }

        /// <summary>
        /// Dia chi domain de dang nhap, khong thay doi trong qua trinh chay chuong trinh
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// Dia chi domain de thuc thi chuong trinh. Thay doi sau khi dang nhap thanh cong
        /// </summary>
        public string LoginAddress { get; set; }

        /// <summary>
        /// Ten dang nhap
        /// </summary>
        public string Username { get; set; }

        /// <summary>
        /// Mat khau. Duoc ma hoa
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// Don vi tien te ma tai khoan su dung
        /// </summary>
        public string Currency { get; set; }

        /// <summary>
        /// Trang thai dang nhap cua tai khoan
        /// </summary>
        public bool IsLogin { get; set; }
        #endregion

        #region Constructor
        public Account()
        {
            Cookie = new CookieContainer();
            IsLogin = false;
        }
        #endregion
    }
}
